//
//  Ring.m
//  OC2_实例变量可见度和方法
//
//  Created by 徐国庆 on 14-10-31.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Ring.h"

@implementation Ring

// 声明设置器方法
- (void)setName:(NSString *)name andMaterialScience:(NSString *)materialaScience andType:(NSString *)type andPrice:(float)price andWeight:(float)weight
{
    _name = name;
    _materialScience = materialaScience;
    _type = type;
    _weight = weight;
}
// 声明访问器方法
- (NSString *)name
{
    return _name;
}
- (NSString *)materialScience
{
    return _materialScience;
}
- (NSString *)type
{
    return _type;
}
- (float)price
{
    return _price;
}
- (float)weight
{
    return _weight;
}



@end
